export default {
	login: {
		url: '/pages/login/index' // 登录页面路径
	},
	index: {
		url: '/pages/index/index' // 登录后跳转的第一个页面
	},
	error: {
		url: '/pages/error/404', // 404 Not Found 错误页面路径
		permisd: '/pages/error/no-permission' // 权限不足
	},
	navBar: { // 顶部导航
		logo: '/static/logo.png', // 左侧 Logo
		langs: [{
			text: '中文简体',
			lang: 'zh-Hans'
		}, {
			text: '中文繁體',
			lang: 'zh-Hant'
		}, {
			text: 'English',
			lang: 'en'
		}],
		themes: [{
			text: '默认',
			value: 'default'
		}, {
			text: '绿柔',
			value: 'green'
		}],
		debug: {
			enable: process.env.NODE_ENV !== 'production', //是否显示错误信息
			engine: [{ // 搜索引擎配置（每条错误信息后，会自动生成搜索链接，点击后跳转至搜索引擎）
				name: '百度',
				url: 'https://www.baidu.com/baidu?wd=ERR_MSG'
			}, {
				name: '谷歌',
				url: 'https://www.google.com/search?q=ERR_MSG'
			}]
		}
	},

	server: {
		//假如配置了devServer，请不必要配置此处
		enable: true,
		target: process.env.NODE_ENV !== 'production' ? "http://localhost:5173" : "https://www.readend.com",
	},
	sideBar: { // 左侧菜单
		width: "180px",
		widthCollapse: "64px",
		menuTextColor: "hsla(0,0%,100%,.65)",
		menuActiveTextColor: "#fff",
		menuBackgroundColor: "#001529",
		backgroundColor: "#001529",
		showMenuSeach: true,

		// 配置静态菜单列表（放置在用户被授权的菜单列表下边）
		staticMenu: [
			// {
			// 	"menu_id": "auth",
			// 	"icon": "admin-icons-kaifashili",
			// 	"text": "权限管理",
			// 	"_showChildren": true,
			// 	"children": [{
			// 			"menu_id": "permits",
			// 			"icon": "admin-icons-icon",
			// 			"text": "权限列表",
			// 			"value": "/pages/permits/permits",
			// 			"roles": ['super'],
			// 			"_showChildren": true,
			// 			"children": []
			// 		},
			// 		{
			// 			"menu_id": "roles",
			// 			"icon": "admin-icons-table",
			// 			"text": "角色列表",
			// 			"roles": ['super'],
			// 			"value": "/pages/permits/roles",
			// 			"_showChildren": true,
			// 			"children": []
			// 		}
			// 	]
			// },
			{
				"menu_id": "quota",
				"icon": "admin-icons-table",
				"text": "配额管理",
				"roles": ['super', 'agent'],
				"value": "",
				"children": [{
						"menu_id": "quotaUser",
						"icon": "admin-icons-table",
						"text": "普通用户",
						"roles": ['super', 'agent'],
						"value": "/pages/quota/ordinary",
						"children": []
					},
					{
						"menu_id": "quotaAgent",
						"icon": "admin-icons-table",
						"text": "代理商",
						"roles": ['super'],
						"value": "/pages/quota/agent",
						"children": []
					}
				]
			},
			{
				"menu_id": "account",
				"icon": "admin-icons-kaifashili",
				"text": "帐户管理",
				"roles": ['super', 'agent'],
				"value": "",
				"children": [{
					"menu_id": "ordinary",
					"icon": "admin-icons-table",
					"text": "普通帐户",
					"roles": ['super', 'agent'],
					"value": "/pages/account/ordinary",
					"children": []
				}, {
					"menu_id": "agent",
					"icon": "admin-icons-table",
					"text": "代理商帐户",
					"roles": ['super'],
					"value": "/pages/account/agent",
					"children": []
				}]
			}, {
				"menu_id": "record",
				"icon": "admin-icons-kaifashili",
				"text": "记录管理",
				"roles": ['super'],
				"value": "",
				"children": [{
					"menu_id": "operation",
					"icon": "admin-icons-table",
					"text": "操作记录",
					"roles": ['super'],
					"value": "/pages/record/operation",
					"children": []
				}, {
					"menu_id": "zb",
					"icon": "admin-icons-table",
					"text": "消费记录",
					"roles": ['super'],
					"value": "/pages/record/zb",
					"children": []
				}, {
					"menu_id": "ai",
					"icon": "admin-icons-table",
					"text": "Ai记录",
					"roles": ['super'],
					"value": "/pages/record/ai",
					"children": []
				}]
			},
			{
				"menu_id": "user",
				"icon": "admin-icons-kaifashili",
				"text": "个人中心",
				"roles": ['super', 'agent'],
				"value": "/pages/user/index",
				"children": []
			},
			{
				menu_id: "demo",
				text: '静态功能演示',
				icon: 'admin-icons-kaifashili',
				roles: ['super'],
				url: "",
				children: [{
					menu_id: "icons",
					text: '图标',
					roles: ['super'],
					icon: 'admin-icons-icon',
					value: '/pages/demo/icons/icons',
				}, {
					menu_id: "table",
					text: '表格',
					roles: ['super'],
					icon: 'admin-icons-table',
					value: '/pages/demo/table/table',
				}]
			}, {
				menu_id: "admim-doc-pulgin",
				text: '文档与插件',
				roles: ['super'],
				icon: 'admin-icons-eco',
				url: "",
				children: [{
					menu_id: "admin-doc",
					icon: 'admin-icons-doc',
					text: 'uni-admin 框架文档',
					roles: ['super'],
					value: 'https://uniapp.dcloud.net.cn/uniCloud/admin'
				}, {
					menu_id: "stat-doc",
					icon: 'admin-icons-help',
					text: 'uni 统计教程',
					roles: ['super'],
					value: 'https://uniapp.dcloud.net.cn/uni-stat-v2.html'
				}, {
					menu_id: "admin-pulgin",
					icon: 'admin-icons-pulgin',
					text: 'uni-admin 插件',
					roles: ['super'],
					value: 'https://ext.dcloud.net.cn/?cat1=7&cat2=74'
				}]
			}
		],
		staticMenu2: [{
				menu_id: "base-info",
				text: '基础信息',
				icon: 'admin-icons-kaifashili',
				url: "",
				children: [{
						menu_id: "plan",
						text: '计划',
						icon: 'admin-icons-icon',
						value: '/pages/demo/icons/icons',
						children: [{
								menu_id: "plan1",
								text: '计划1',
								icon: 'admin-icons-icon',
								value: '/pages/demo/icons/icons',
								children: [{
									menu_id: "plan2",
									text: '计划2',
									icon: 'admin-icons-icon',
									value: '/pages/demo/icons/icons',
								}, {
									menu_id: "task2",
									text: '任务2',
									icon: 'admin-icons-table',
									value: '/pages/demo/table/table',
								}]
							},
							{
								menu_id: "task1",
								text: '任务1',
								icon: 'admin-icons-table',
								value: '/pages/demo/table/table',
							}
						]
					},
					{
						menu_id: "task",
						text: '任务',
						icon: 'admin-icons-table',
						value: '/pages/demo/table/table',
					}
				]
			},
			{
				menu_id: "purchase_management",
				text: '采购管理',
				icon: 'admin-icons-kaifashili',
				url: "",
				children: [{
					menu_id: "supplier-management",
					text: '供应商管理',
					icon: 'admin-icons-icon',
					value: '/pages/demo/icons/icons',
				}, {
					menu_id: "purchase-order",
					text: '采购订单',
					icon: 'admin-icons-table',
					value: '/pages/demo/table/table',
				}]
			},
			{
				menu_id: "sales_management",
				text: '销售管理',
				icon: 'admin-icons-kaifashili',
				url: "",
				children: [{
					menu_id: "Customer",
					text: '客户信息管理',
					icon: 'admin-icons-icon',
					value: '/pages/demo/icons/icons',
				}, {
					menu_id: "Sales order",
					text: '销售订单',
					icon: 'admin-icons-table',
					value: '/pages/demo/table/table',
				}]
			},
			{
				menu_id: "stock-management",
				text: '库存管理',
				icon: 'admin-icons-kaifashili',
				url: "",
				children: [{
					menu_id: "warehouse-management",
					text: '仓库管理',
					icon: 'admin-icons-icon',
					value: '/pages/demo/icons/icons',
				}, {
					menu_id: "stock-taking",
					text: '库存盘点',
					icon: 'admin-icons-table',
					value: '/pages/demo/table/table',
				}]
			},
			{
				menu_id: "Production-management",
				text: '生产管理',
				icon: 'admin-icons-kaifashili',
				url: "",
				children: [{
					menu_id: "production plan",
					text: '生产计划',
					icon: 'admin-icons-icon',
					value: '/pages/demo/icons/icons',
				}, {
					menu_id: "Production task",
					text: '生产任务',
					icon: 'admin-icons-table',
					value: '/pages/demo/table/table',
				}]
			},
			{
				menu_id: "Financial management",
				text: '财务管理',
				icon: 'admin-icons-kaifashili',
				url: "",
				children: [{
					menu_id: "Accounts receivable",
					text: '应收账款',
					icon: 'admin-icons-icon',
					value: '/pages/demo/icons/icons',
				}, {
					menu_id: "Accounts payable",
					text: '应付账款',
					icon: 'admin-icons-table',
					value: '/pages/demo/table/table',
				}]
			},
			{
				menu_id: "Human resource management",
				text: '人力资源管理',
				icon: 'admin-icons-kaifashili',
				url: "",
				children: [{
					menu_id: "Employee information",
					text: '员工信息',
					icon: 'admin-icons-icon',
					value: '/pages/demo/icons/icons',
				}, {
					menu_id: "Payroll management",
					text: '薪资管理',
					icon: 'admin-icons-table',
					value: '/pages/demo/table/table',
				}]
			},
			{
				menu_id: "CRM",
				text: '客户关系管理',
				icon: 'admin-icons-kaifashili',
				url: "",
				children: [{
						menu_id: "sales lead",
						text: '销售线索',
						icon: 'admin-icons-icon',
						value: '/pages/demo/icons/icons',
					}, {
						menu_id: "sales opportunities",
						text: '销售机会',
						icon: 'admin-icons-table',
						value: '/pages/demo/table/table',
					},
					{
						menu_id: "Customer service",
						text: '客户服务',
						icon: 'admin-icons-table',
						value: '/pages/demo/table/table',
					}
				]
			},


			{
				menu_id: "demo",
				text: '静态功能演示',
				icon: 'admin-icons-kaifashili',
				url: "",
				children: [{
					menu_id: "icons",
					text: '图标',
					icon: 'admin-icons-icon',
					value: '/pages/demo/icons/icons',
				}, {
					menu_id: "table",
					text: '表格',
					icon: 'admin-icons-table',
					value: '/pages/demo/table/table',
				}]
			}, {
				menu_id: "admim-doc-pulgin",
				text: '文档与插件',
				icon: 'admin-icons-eco',
				url: "",
				children: [{
					menu_id: "admin-doc",
					icon: 'admin-icons-doc',
					text: 'uni-admin 框架文档',
					value: 'https://uniapp.dcloud.net.cn/uniCloud/admin'
				}, {
					menu_id: "stat-doc",
					icon: 'admin-icons-help',
					text: 'uni 统计教程',
					value: 'https://uniapp.dcloud.net.cn/uni-stat-v2.html'
				}, {
					menu_id: "admin-pulgin",
					icon: 'admin-icons-pulgin',
					text: 'uni-admin 插件',
					value: 'https://ext.dcloud.net.cn/?cat1=7&cat2=74'
				}]
			},
		]
	},
	uniStat: {

	}
}